package com.study.service;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author : xujianhong
 * date   : 2023/2/28
 * desc   :
 * version: 1.0
 */
public class UserInfoBean implements Parcelable{
    public String userName;
    public String userPwd;

    protected UserInfoBean(Parcel in) {
        userName = in.readString();
        userPwd = in.readString();
    }

    public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
        @Override
        public UserInfoBean createFromParcel(Parcel in) {
            return new UserInfoBean(in);
        }

        @Override
        public UserInfoBean[] newArray(int size) {
            return new UserInfoBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userName);
        dest.writeString(userPwd);
    }
}
